package com.example.teachingSystem.service;

import com.example.teachingSystem.pojo.entity.Notice;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.teachingSystem.pojo.form.BasePageQuery;
import com.example.teachingSystem.pojo.form.notice.AddNoticeForm;
import com.example.teachingSystem.pojo.form.notice.UpdateNoticeForm;
import com.example.teachingSystem.utils.result.PageResult;
import com.example.teachingSystem.utils.result.Result;

/**
* @author 86147
* @description 针对表【notice(系统通知表)】的数据库操作Service
* @createDate 2023-11-27 21:43:54
*/
public interface NoticeService extends IService<Notice> {
    Result<String> addNotice(AddNoticeForm addNoticeForm);

    Result<String> updateNotice(UpdateNoticeForm updateNoticeForm);

    Result<String> deleteNotice(Long id);

    Result<String> changeNoticeActive(Long noticeId,Boolean isActive);

    PageResult<Notice> getNoticePage(BasePageQuery basePageQuery);


}
